package com.common.core.exception;


import com.common.core.exception.code.BaseErrorCode;

/**
 * @author zhangwj
 * @date 2021/7/26 上午11:52
 */
public class SysException extends AbstractException {

    private static final long serialVersionUID = 1L;

    public SysException(String errMsg) {
        super(Integer.toString(BaseErrorCode.SYS_EXCEPTION_CODE.getErrNum()), errMsg);
    }

    public SysException(String errCode, String errMsg) {
        super(errCode, errMsg);
    }

    public SysException(String errMsg, Throwable e) {
        super(Integer.toString(BaseErrorCode.SYS_EXCEPTION_CODE.getErrNum()), errMsg, e);
    }

    public SysException(String errCode, String errMsg, Throwable e) {
        super(errCode, errMsg, e);
    }
}
